home *** CD-ROM | disk | FTP | other *** search
/ Tech Arsenal 1 / Tech Arsenal (Arsenal Computer).ISO / tek-01 / ttga10.zip / HCTARGA.H < prev    next >
C/C++ Source or Header  |  1992-01-09  |  782b  |  34 lines

  1. /*
  2.  * HCTarga.H
  3.  *
  4.  * Copyright 1990,1991 Synergrafix Consulting
  5.  *          All Rights Reserved.
  6.  *
  7.  * November 19,1991
  8.  *
  9.  */
  10.  
  11. #ifndef _HC_TGAINCLUDE
  12.  
  13. #define _HC_TGAINCLUDE
  14.  
  15. #include "hicolor.h"
  16.  
  17. #define HCTGACANTOPEN    -1
  18. #define HCTGANOMEM    -2
  19. #define HCTGANOTSUPPORTED -3
  20. #define HCTGACANTREAD    -4
  21. #define HCTGACANTWRITE    -5
  22.  
  23. #define MAXTGAXWIDTH    1280
  24. #define MAXTGAXHEIGHT    2048
  25. #define MAXTCOMMENT    256
  26.  
  27. extern unsigned char tcomment[MAXTCOMMENT];
  28. extern unsigned char tcommentsize;
  29.  
  30. int hctgaview(char *fname,int x,int y,int x1,int y1,int dither);
  31. int hctgasave(char *fname,int x,int y,int x1,int y1,int compressed,unsigned char csize,unsigned char *comm);
  32. int hctgasize(char *fname,int *w,int *h,unsigned char *csize,unsigned char *comm);
  33.  
  34. #endif